<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<meta name="description" content=""/>
	<meta name="keywords" content=""/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
	<title>登录1</title>
	<link rel="stylesheet" type="text/css" th:href="@{/css/login/reset.css}" media="all">
	<link rel="stylesheet" type="text/css" th:href="@{/css/login/common.css}" media="all"/>
	<link rel="stylesheet" type="text/css" th:href="@{/css/login/zxx.lib.css}" media="all"/>
	<link rel="stylesheet" type="text/css" th:href="@{/css/login/portal.css}" media="all"/>
</head>
<body class="oscar-bg">
<div class="oscar-content rel">
	<div class="oscar-content-inside rel">
		<h1 class="oscar-title fix">
			<img class="l" style="margin-top:7px;" th:src="@{/css/images/logo.png}" height="26px" width="auto" />
			<div class="l">&nbsp;TDD智能日报系统</div>
		</h1>
	</div><!-- oscar-content-inside -->
	<div class="oscar-login-box abs">
		<form name="form" th:action="@{/authenticate}" action="/login" method="POST">
			<input class="oscar-username oscar-text db" id="username" name="username" type="text"  placeholder="请输入用户名"/>
			<input class="oscar-password oscar-text db" name="password" type="text" placeholder="请输入密码"/>
			<button class="oscar-submit db" type="submit">登&nbsp;&nbsp;&nbsp;&nbsp;录</button>
		</form>
		<!--<span hidden id="error" style="font:bold;color:red" th:text="${#request.getParameter('error')}"/>-->
	</div><!-- /oscar-login-box -->
</div><!-- /oscar-content -->
<footer class="oscar-footer">
	<div class="oscar-line auto"></div><!-- /oscar-line -->
	<br />
	<div class="tc f14 oscar-info">
		Powered by：技术发展部
	</div>
</footer>
<script th:src="@{/venders/jquery/jquery.min.2.1.4.js}"></script>
</body>
<script>
	$(function() {
	   $("#username").focus();
	   console.log($("#error").html());
	   if($("#error").html()==1){
	         $("#error").html('登录失败：错误的用户名或密码！');
	         $("#error").show();
	   }
	});

</script>
</html>
